package com.ys.entity.flow;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YSP_TaskAuditUser", catalog="Id")
public class YspTaskAuditUser extends BaseEntity<YspTaskAuditUser> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="TaskId", nameJava="taskId", typeDataBase="bigint")
	private Long taskId;
	@YsField(nameDataBase="TaskAuditId", nameJava="taskAuditId", typeDataBase="bigint")
	private Long taskAuditId;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="tinyint")
	private Integer state;
	@YsField(nameDataBase="Opinion", nameJava="opinion", typeDataBase="varchar")
	private String opinion;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YspTaskAuditUser setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getTaskId() {
		return taskId;
	}
	public YspTaskAuditUser setTaskId(Long taskId) {
		this.taskId = taskId;
		return this;
	}
	public Long getTaskAuditId() {
		return taskAuditId;
	}
	public YspTaskAuditUser setTaskAuditId(Long taskAuditId) {
		this.taskAuditId = taskAuditId;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public YspTaskAuditUser setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public YspTaskAuditUser setState(Integer state) {
		this.state = state;
		return this;
	}
	public String getOpinion() {
		return opinion;
	}
	public YspTaskAuditUser setOpinion(String opinion) {
		this.opinion = opinion;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YspTaskAuditUser setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YspTaskAuditUser setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YspTaskAuditUser setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YspTaskAuditUser yspTaskAuditUser(
		Long taskId,
		Long taskAuditId,
		String userId,
		Integer state,
		String opinion,
		Integer status
			) {
		YspTaskAuditUser entity = new YspTaskAuditUser();
		entity.setTaskId(taskId);
		entity.setTaskAuditId(taskAuditId);
		entity.setUserId(userId);
		entity.setState(state);
		entity.setOpinion(opinion);
		entity.setStatus(status);
		return entity;
	}
}